﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Domain
{
    [Table("Customer")]
    public class Customer
    {
        [Key, ForeignKey("Account")]
        public int Id { get; set; }
        [MaxLength(20)]
        [Required]
        public string FirstName { get; set; }
        [MaxLength(20)]
        [Required]
        public string LastName { get; set; }
        [Required]
        public DateTime Birthday { get; set; }
        [MaxLength(50)]
        public string Address { get; set; }
        [Required]
        public bool Gender { get; set; }
        [MaxLength(15)]
        public string PhoneNumber { get; set; }
        public virtual Account Account { get; set; }

    }
}
